import 'package:json_annotation/json_annotation.dart';

part 'country_bean.g.dart';

@JsonSerializable()
class CountryBean {
  String id;
  String name;
  String code;
  String supid;
  String type;

  CountryBean({this.id, this.name, this.code, this.supid, this.type});

  CountryBean.fromJson(Map<String, dynamic> json) {
    this.id = json['id'];
    this.name = json['name'];
    this.code = json['code'];
    this.supid = json['supid'];
    this.type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['code'] = this.code;
    data['supid'] = this.supid;
    data['type'] = this.type;
    return data;
  }
}
